<?php $this->_extends('../_layouts/default_layout'); ?>

<?php $this->_block('contents'); ?>

<div class="tasks">
<?php
// user_id, group_id, account, user_name, password, ipzone, email, mobile, phone, join_day, dimission_day, birthday,
// created, updated, is_locked, register_ip, last_login, last_login_ip, login_count
// group_id, parent_id, group_name, left_value, right_value, description, has_users
// role_id rolename description user_owned group_owned
//$show_box['user_info']
$user_roles = Helper_MtoM::MaekAasArr($show_box['user_info']->roles,'admin::users/bind',array('user_id'=>$show_box['user_info']['user_id']),'rolename');
$user_roles = implode(',', Q::normalize($user_roles));
?>

<h1><?php echo $show_box['title'];?></h1>
<table cellSpacing="0" cellPadding="3" align="center" border="0" width="100%">
    <tr><td align="left" class='bgTitle'>成员ID</td>    <td align="left" ><?php echo $show_box['user_info']['user_id'];?></td></tr>
    <tr><td align="left" class='bgTitle'>姓名</td>      <td align="left" ><?php echo $show_box['user_info']['user_name'];?></td></tr>
    <tr><td align="left" class='bgTitle'>登录帐号</td>  <td align="left" ><?php echo $show_box['user_info']['account'];?></td></tr>
    <tr><td align="left" class='bgTitle'>所在部门</td>  <td align="left" ><?php echo $show_box['user_info']->group->group_name;?></td></tr>
    <tr><td align="left" class='bgTitle'>拥有角色</td>  <td align="left" ><?php echo $user_roles;?></td></tr>
    <tr><td align="left" class='bgTitle'>是否锁定</td>  <td align="left" ><?php echo $show_box['user_info']['is_locked']?'已锁定':'未锁定';?></td></tr>
</table>
</div>

<?php //$this->_element('../../_elements/formview_simple', array('form' => $show_box['form'])); ?>
<?php //dump($show_box['user_roles']);?>
<?php //dump($show_box['roles']);?>

<?php $this->_endblock(); ?>